<template>
  <div>
    
  
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column prop="userName" label="姓名" width="180"></el-table-column>
      <el-table-column prop="userDeptName" label="所属部门" width="180"></el-table-column>
      
    </el-table>
  </div>
</template>
<script>
import axios from 'axios'
export default {
  
  
  data() {
    return {
    tableData:[]
    }
  },
methods:{
  
getLIst(){
  var tableData;
  axios.get('http://localhost:8888/vallis/user/getAllUser').then(function(res){
this.tableData=res.data
} )}

},
created(){
this.getLIst()

}
  
};
</script>